package cn.iocoder.yudao.framework.business.order.pojo.vo;

import cn.iocoder.yudao.framework.business.basic.pojo.vo.MemberScopeVO;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public abstract class BizOrderVO extends MemberScopeVO {

    @Schema(description = "交易单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "PRD202406271105343545")
    private String tradeNo;

    @Schema(description = "销售价，单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "5000")
    private Integer price;

    @Schema(description = "支付单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "PAY202406271105343545")
    private String payNo;

    @Schema(description = "是否已支付", requiredMode = Schema.RequiredMode.REQUIRED, example = "false")
    private Boolean payed;

    @Schema(description = "系统备注", example = "超时未付款，支付单已关闭")
    private String note;

    @Schema(description = "购买品的快照信息")
    private String snapshot;

    @Schema(description = "业务数据的更新时间")
    @JsonIgnore(value = false)
    private LocalDateTime updateTime;

}
